Dynomotion

Group: DynoMotion Message: 2858 From: himykabibble Date: 1/1/2012
Subject: Running Interpreter....
Brad,

I tried copying the example interpreter code from VCS dotNet Console example, but pointing the interpreter to the "box.ngc" example G-code file. When it does:

_Controller.Interpreter.Interpret(@"C:\KMotion428\GCode Programs\box.ngc");

It throws up an error dialog saying it's unable to open a file with the name consisting of about 100 letter "i"s with accents over them, followed by "\GCode Programs\emc.var". Odd, given that's not the file I asked it to interpret.

The error dialog is coming out of something in KM_dotnet_Interop_GCodeInterpreter_Interpret, but, oddly, there is no exception thrown. When the dialog is dismissed, the application quits.

Regards,
Ray L.
Group: DynoMotion Message: 2865 From: Brad Murry Date: 1/2/2012
Subject: Re: Running Interpreter....

Hello Ray,

 

You need to set the KM_Controller.Interpreter.CoordMotion.MaintPathRoot to the path of your KMotion directory.  It’s a bit obtuse but is adjustable in case you want to switch machine configs on the fly.

 

-Brad Murry

 

From: DynoMotion@yahoogroups.com [mailto:DynoMotion@yahoogroups.com] On Behalf Of himykabibble
Sent: Sunday, January 01, 2012 9:25 PM
To: DynoMotion@yahoogroups.com
Subject: [DynoMotion] Running Interpreter....

 

 

Brad,

I tried copying the example interpreter code from VCS dotNet Console example, but pointing the interpreter to the "box.ngc" example G-code file. When it does:

_Controller.Interpreter.Interpret(@"C:\KMotion428\GCode Programs\box.ngc");

It throws up an error dialog saying it's unable to open a file with the name consisting of about 100 letter "i"s with accents over them, followed by "\GCode Programs\emc.var". Odd, given that's not the file I asked it to interpret.

The error dialog is coming out of something in KM_dotnet_Interop_GCodeInterpreter_Interpret, but, oddly, there is no exception thrown. When the dialog is dismissed, the application quits.

Regards,
Ray L.

Group: DynoMotion Message: 2867 From: himykabibble Date: 1/2/2012
Subject: Re: Running Interpreter....
Brad,

That should be just: KM_Controller.Interpreter.MaintPathRoot

This should be added to the example code, since it won't work as-is.

That resolved that problem. Thanks.

Regards,
Ray L.

--- In DynoMotion@yahoogroups.com, Brad Murry <bradodarb@...> wrote:
>
> Hello Ray,
>
>
>
> You need to set the KM_Controller.Interpreter.CoordMotion.MaintPathRoot to
> the path of your KMotion directory. It's a bit obtuse but is adjustable in
> case you want to switch machine configs on the fly.
>
>
>
> -Brad Murry
>
>
>
> From: DynoMotion@yahoogroups.com [mailto:DynoMotion@yahoogroups.com] On
> Behalf Of himykabibble
> Sent: Sunday, January 01, 2012 9:25 PM
> To: DynoMotion@yahoogroups.com
> Subject: [DynoMotion] Running Interpreter....
>
>
>
>
>
> Brad,
>
> I tried copying the example interpreter code from VCS dotNet Console
> example, but pointing the interpreter to the "box.ngc" example G-code file.
> When it does:
>
> _Controller.Interpreter.Interpret(@"C:\KMotion428\GCode Programs\box.ngc");
>
> It throws up an error dialog saying it's unable to open a file with the name
> consisting of about 100 letter "i"s with accents over them, followed by
> "\GCode Programs\emc.var". Odd, given that's not the file I asked it to
> interpret.
>
> The error dialog is coming out of something in
> KM_dotnet_Interop_GCodeInterpreter_Interpret, but, oddly, there is no
> exception thrown. When the dialog is dismissed, the application quits.
>
> Regards,
> Ray L.
>